home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1293 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  919 b 

  1. Path: news.th-darmstadt.de!news
  2. From: Enno Sandner <enno@intellektik.informatik.th-darmstadt.de>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: sizeof(vtbl)
  5. Date: Wed, 10 Jan 1996 11:06:19 +0100
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Message-ID: <30F38F9B.2781E494@intellektik.informatik.th-darmstadt.de>
  8. References: <4cqva7$1cu@seal.abalon.se>
  9. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 4.1.3 sun4m)
  14.  
  15. ken1@abalon.se wrote:
  16. > Is it possible to know the size of the vtbl for a given class
  17. > at compile time (to do something like
  18. > int x = sizeof(theclass::vtbl)
  19. > or similar)?
  20.  
  21. No.
  22. For a specific compiler version running on a well-known system it may
  23. work, but there is no language support for such a thing.
  24. Thus it will not work in _general_.
  25.  
  26.     Enno
  27.